package gulimall.to.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * ElasticSearch中保存的商品相关信息，用于商品检索
 *
 * @author HLF
 * @date 2022/6/13 11:11
 */
@Data
public class SkuEsModel {
    private Long skuId;

    private Long spuId;

    private String skuTitle;

    private BigDecimal skuPrice;

    private String skuImg;

    /**
     * 销量
     */
    private Long saleCount;

    /**
     * 是否有库存
     */
    private Boolean hasStock;

    /**
     * 热度评分
     */
    private Long hotScore;

    /**
     * 品牌id
     */
    private Long brandId;

    /**
     * 分类id
     */
    private Long catelogId;

    /**
     * 品牌名
     */
    private String brandName;

    /**
     * 品牌图片
     */
    private String brandImg;

    /**
     * 分类名
     */
    private String catelogName;


    private List<Attrs> attrs;


    @Data
    public static class Attrs {
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}
